package com.deft.design.adapter.adapter.impl;

import com.deft.design.adapter.adapter.OrderAdapterService;
import com.deft.design.adapter.service.OrderService;

/**
 * @author Hide丶love
 * @date 2022/04/24
 **/
public class InsideOrderServiceImpl implements OrderAdapterService {

    private final OrderService orderService = new OrderService();

    @Override
    public boolean isFirst(String userId) {
        return orderService.queryUserOrderCount(userId) <= 1;
    }
}
